package java_exceptions.what_is_exception;

public class JavaException2 {

	public static void main(String[] args) {
	
		try {

			int x = 10 / 0; // exception thrown

		} catch (ArithmeticException ex) {
			System.out.println
				("Exception caught: " + ex.getMessage());
		}
		System.out.println("main");
	}
}

